home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 March / CMCD0305.ISO / Software / Shareware / Grafica / falbum / fasetup101.exe / {app} / Templates / simple.tml < prev   
Text File  |  2004-09-19  |  5KB  |  158 lines

  1. <head>
  2. <title>Web-gallery for [[FolderName]]</title>
  3. <script>
  4. var old_img= new Image();
  5. var pagecount=Math.floor([[ImagesCount]]/[[ImagesPerPage]]);
  6. var curpagefile='';
  7. if ( ([[ImagesCount]]/[[ImagesPerPage]])>pagecount ) { pagecount++; }
  8.  
  9. var startborder=([[PageNumber]]-1)*[[ImagesPerPage]]+1;
  10. var endborder=[[PageNumber]]*[[ImagesPerPage]];
  11.         
  12.         
  13. function sel_image(img,fn,wd,ht)
  14. {
  15. old_img.border=0;
  16. img.border=3;
  17. old_img=img;
  18. var im = new Image();
  19. im.src=img;
  20. var s='';
  21. s='width='+wd+',height='+ht+',resizable=yes,titlebar=no,fullscreen=no';
  22. k=fn;
  23. while (k.indexOf('.',0)>=0)
  24. {
  25. k=k.replace('.','_');
  26. }
  27. while (k.indexOf(' ',0)>=0)
  28. {
  29. k=k.replace(' ','_');
  30. }
  31. while (k.indexOf('-',0)>=0)
  32. {
  33. k=k.replace('-','_');
  34. }
  35. popup=window.open('',k,s);
  36. popup.innerHeight=0;
  37. popup.document.open();
  38. popup.document.write('<head><title>'+fn+'</title></head><body leftmargin=0 topmargin=0 bgcolor=silver><table height=100% width=100%><tr valign=center><td>');
  39. popup.document.write('<center><img alt="Click to close window" style="cursor: hand" src='+im.src+' onClick="javascript:window.close()">');
  40. popup.document.write('</td></tr></table></body>');
  41. popup.focus();
  42. }
  43.  
  44. function DrawTabs()
  45. {
  46. if (pagecount>1) {
  47.           for (i=0;i<pagecount;i++)
  48.             { curpagefile='[[PageFileName]]';
  49.        
  50.               if (i>0) {curpagefile=curpagefile.replace('.',''+i+'.');}
  51.              
  52.               startborder=i*[[ImagesPerPage]]+1;
  53.               endborder=(i+1)*[[ImagesPerPage]];
  54.           
  55.               if (endborder>[[ImagesCount]]) {endborder=[[ImagesCount]];}
  56.           
  57.               if ((i+1)==[[PageNumber]])
  58.                 {document.writeln('<font color=black>['+startborder+'-'+endborder+']</font>' );}
  59.               else
  60.                 {document.writeln('<a href='+curpagefile+'><font color=silver>['+startborder+'-'+endborder+']</font></a>');}
  61.             }
  62.         }
  63. }
  64.  
  65. </script>
  66. </head>
  67. <body>
  68. <table border=0 cellspacing=1><tr colspan=5><td colspan=5>
  69. <table bgcolor=EDEDED width=100% height=100%>
  70.   <tr align=center><td width=100%><font face='Tahoma' color=black size=2><b>[[FolderName]]</b></font>
  71.   <font face='Tahoma' color=gray size=2> [[[ImagesCount]] images]</font></td></tr>
  72. </table>
  73. </td></tr>
  74.  
  75. <tr><td colspan=5>
  76. <table bgcolor=EDEDED width=100% height=100%>
  77.   <tr align=center><td width=100%>
  78.     <font face='Tahoma' color=silver size=2><a><font color=silver></font></a>
  79.       <script>
  80.          DrawTabs();   
  81.       </script>
  82.     </font>
  83.   </td></tr>
  84. </table></td></tr>
  85.  
  86.                                         [[RecordInfo]]
  87.                                         
  88.                                         <tr align=center height=103>[[01]]
  89.                                             <td>
  90.                                                 <table bgcolor=EDEDED width=100% height=100%>
  91.                                                     <tr align=center>
  92.                                                         <td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])"> 
  93. </td>
  94.                                                     </tr>
  95.                                                     
  96.                                                 </table>
  97.                                             </td>
  98.                                             [[/01]] [[02]]
  99.                                             <td>
  100.                                                 <table bgcolor=EDEDED width=100% height=100%>
  101.                                                     <tr align=center>
  102.                                                         <td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
  103.                                                     </tr>
  104.                                                     
  105.                                                 </table>
  106.                                             </td>
  107.                                             [[/02]] [[03]]
  108.                                             <td>
  109.                                                 <table bgcolor=EDEDED width=100% height=100%>
  110.                                                     <tr align=center>
  111.                                                         <td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
  112.                                                     </tr>
  113.                                                     
  114.                                                 </table>
  115.                                             </td>
  116.                                             [[/03]] [[04]]
  117.                                             <td>
  118.                                                 <table bgcolor=EDEDED width=100% height=100%>
  119.                                                     <tr align=center>
  120.                                                         <td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
  121.                                                     </tr>
  122.                                                 
  123.                                                 </table>
  124.                                             </td>
  125.                                             [[/04]] [[05]]
  126.                                             <td>
  127.                                                 <table bgcolor=EDEDED width=100% height=100%>
  128.                                                     <tr align=center>
  129.                                                         <td width=100><img style="cursor: hand" border=0 src="[[IconFilePath]]" name="[[SampleFilePath]]" onClick="sel_image(this.name,'[[FileName]]',[[SampleWidth]],[[SampleHeight]])">
  130.                                                     </tr>
  131.                                                 
  132.                                                 </table>
  133.                                             </td>
  134.                                             [[/05]]</tr>
  135.                                         [[/RecordInfo]]
  136.                                         
  137. <tr><td colspan=5>
  138. <table bgcolor=EDEDED width=100% height=100%>
  139.   <tr align=center><td width=100%>
  140.     <font face='Tahoma' color=silver size=2><a><font color=silver></font></a>
  141.       <script>
  142.          DrawTabs();   
  143.       </script>
  144.     </font>
  145.   </td></tr>
  146. </table></td></tr>                                        
  147.                                         
  148.                                         <td colspan=5>
  149. <table  width=100% height=100%>
  150.   <tr align=center><td width=100%><font face='Tahoma' color=silver size=1>This gallery generated by <a href='http://www.enins.com/f-album'><font color=silver>F-Album</font></a></font>
  151.   </td></tr>
  152.   
  153.   
  154.   
  155. </table>
  156. </td></tr>
  157.                                     </table>
  158. </body>